<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:camunda="http://camunda.org/schema/1.0/bpmn" 
    xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" 
    xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" 
    xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" 
    typeLanguage="http://www.w3.org/2001/XMLSchema" 
    expressionLanguage="http://www.w3.org/1999/XPath"
    targetNamespace="test">

  <process id="testProcess" isExecutable="true">

    <startEvent id="start">
      <extensionElements>
        <camunda:formData>
          <camunda:formField id="stringField" label="String Field" type="string" defaultValue="someString">
            <camunda:validation>
              <camunda:constraint name="maxlength" config="10" />
              <camunda:constraint name="minlength" config="5" />
            </camunda:validation>
          </camunda:formField>
          <camunda:formField id="longField" label="Long Field" type="long" defaultValue="5">
            <camunda:validation>
              <camunda:constraint name="max" config="10" />
              <camunda:constraint name="min" config="3" />
            </camunda:validation>
          </camunda:formField>
          <camunda:formField id="customField" label="Custom Field" type="string">
            <camunda:validation>
              <camunda:constraint name="validator" config="org.camunda.bpm.engine.test.api.form.CustomValidator" />
            </camunda:validation>
          </camunda:formField>
          <camunda:formField id="dateField" label="Date Field" type="date" defaultValue="10/01/2013" />
        </camunda:formData>
      </extensionElements>
    </startEvent>

    <sequenceFlow sourceRef="start" targetRef="usertask" />

    <userTask id="usertask" name="Task" camunda:candidateGroups="dummy" />

    <sequenceFlow sourceRef="usertask" targetRef="task2" />

    <userTask id="task2" />

  </process>

</definitions>
